package com.vrv.app.cyberspace.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author：LJ
 * @Description：系统配置参数 其他配置或详情地址配置封装类
 * 步骤:1.在这里加入属性(和getter/setter) 2.在application.yml中添加对应属性名配置（key-value）
 * @Date: 2017/12/19
 * @Modified By:
 */
@Component
@ConfigurationProperties(WXBSystemConfig.PREFIX)
public class WXBSystemConfig {

    public static final String PREFIX = "wxb";

    //应用IP端口号
    private String appIPPort;

    //每日零报告模板详情地址
    private static final String dailyReportDetailUrl = "/Cyberspace/im/enter.html#reportDesc";
    //今日快报模板详情地址
    private static final String todayBulletinDetailUrl = "/Cyberspace/york/phone/messageManager.html#/news?type=1&isPush=1";
    //事件管理模板详情地址
    private static final String eventFeedbackDetailUrl = "/Cyberspace/york/phone/messageManager.html#/details?type=2&isPush=1";
    //预警管理模板详情地址
    private static final String riskFeedbackDetailUrl = "/Cyberspace/york/phone/messageManager.html#/details?type=3&isPush=1";

    public String getAppIPPort() {
        return appIPPort;
    }

    public void setAppIPPort(String appIPPort) {
        this.appIPPort = appIPPort;
    }

    public String getDailyReportDetailUrl() {
        return getAppIPPort() + dailyReportDetailUrl;
    }

    public String getEventFeedbackDetailUrl() {
        return getAppIPPort() + eventFeedbackDetailUrl;
    }

    public String getRiskFeedbackDetailUrl() {
        return getAppIPPort() + riskFeedbackDetailUrl;
    }

    public String getTodayBulletinDetailUrl() {
        return getAppIPPort() + todayBulletinDetailUrl;
    }


}
